<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

	<div class="row">
		<?php echo $form->label($model,'id'); ?>
		<?php echo $form->textField($model,'id',array('size'=>10,'maxlength'=>10)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>255)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'description'); ?>
		<?php echo $form->textField($model,'description',array('size'=>60,'maxlength'=>255)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'submitStart'); ?>
		<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
			'model'=>$model,
			'attribute'=>'submitStart',
			'options'=>array('dateFormat'=>'yy-mm-dd'),
			'htmlOptions'=>array('class'=>'date-field'),
		)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'submitEnd'); ?>
		<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
			'model'=>$model,
			'attribute'=>'submitEnd',
			'options'=>array('dateFormat'=>'yy-mm-dd'),
			'htmlOptions'=>array('class'=>'date-field'),
		)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'voteStart'); ?>
		<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
			'model'=>$model,
			'attribute'=>'voteStart',
			'options'=>array('dateFormat'=>'yy-mm-dd'),
			'htmlOptions'=>array('class'=>'date-field'),
		)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'voteEnd'); ?>
		<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
			'model'=>$model,
			'attribute'=>'voteEnd',
			'options'=>array('dateFormat'=>'yy-mm-dd'),
			'htmlOptions'=>array('class'=>'date-field'),
		)); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Search'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->